<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
  <head>
    <title>/{{ board }}/ - {{ board_name }} - {{ application_name }}</title>
    <link rel="stylesheet" href="/static/css/global.css">
    <link rel="stylesheet" type="text/css" href="/static/css/2ch.css" title="2ch">
  </head>{% if not replythread %}
  <body class="board">{% else %}
  <body class="read">{% endif %}{% if not replythread %}
    <div class="hborder">
      <div class="head">
        <span class="accountlink"><a href="/">Home</a> - <a href="/account">Account</a></span>
        <span class="navlinks"><a href="#menu">■</a>&nbsp;<a href="#1">▼</a></span>
        <h1 align="center">
          {{ board_name }}
        </h1>
      </div>
    </div>
    <a name="menu" rev="contents"></a>{% if threadlist %}
    <div class="hborder">
      <div class="head">
        <div class="threadldiv" style="padding: 4px;font-size: .8em;">
          {{ threadlist }}
          <div class="threadlinks">
            <a href="/{{ board }}/subback">View Full Thread List</a>
          </div>
        </div>
      </div>
    </div>{% endif %}
    <!--<div class="hborder">
      <div class="head midhead">
        <b>Style:</b> 
        <a href="#" onclick="javascript:set_stylesheet('Futatxt',true);return false;">FutaTXT</a>
        <a href="#" onclick="javascript:set_stylesheet('Buritxt',true);return false;">BuriTXT</a>
        <a href="#" onclick="javascript:set_stylesheet('Yotsuba',true);return false;">Yotsuba</a>
        <a href="#" onclick="javascript:set_stylesheet('Headline',true);return false;">Headline</a>
        <a href="#" onclick="javascript:set_stylesheet('Pseud0ch',true);return false;">Pseud0ch</a>
      </div>
    </div>-->{% endif %}{% for thread in threads %}{% if not replythread %}
    <div class="border">
      <div class="thread">
        <a name="{{ thread.relid }}"></a>
          <span class="navlinks">
            <a href="#menu">■</a>
            {{ thread.navlinks }}
        </span>
        <br>{% else %}
        <span style="float: right;"><a href="/">Home</a> - <a href="/account">Account</a></span>
        <a href="/{{ board }}/">Front Page</a>&nbsp;&nbsp;<a href="/{{ board }}/{{ thread.op_key }}">All</a>&nbsp;&nbsp;<a href="/{{ board }}/{{ thread.op_key }}/l50">Last 50</a> &nbsp;&nbsp;<a href="/{{ board }}/{{ thread.op_key }}/-100">First 100</a> 
        <hr class="tophr">{% endif %}{% for post in thread.posts %}{% if post.subject %}
        <h2>
          {% if not replythread %}<span class="replies">【{{ thread.relid }}：{{ thread.posts_in_thread }}】</span>{% endif %}{{ post.subject }}
        </h2><br>{% endif %}
        <div class="post {% cycle even,odd %}">{% if not post.deleted %}
          <h3>
            <span class="postnum">
            {{ post.relid }} ：</span>{{ post.nameblock }}
            {{ post.date_formatted }}{% if administratorview %}
            [<a href="/admin/delete/{{ board }}/{{ post.key }}">D</a> <a href="/admin/ban/{{ board }}/{{ post.key }}">B</a>]{% endif %}
          </h3>
          <blockquote>
          {{ post.message }}
          </blockquote>{% else %}
          <h3>
            <span class="postnum">
            {{ post.relid }} ：</span>Deleted
            {{ post.date_formatted }}
          </h3>
          <blockquote>
          <font color="gray">This post has been deleted.</font>
          </blockquote>{% endif %}
        </div>{% endfor %}{% if not replythread %}
        <form name="postform" id="postform" action="/post" method="post">
          <input type="hidden" name="board" value="{{ board }}">
          <input type="hidden" name="parent" value="{{ thread.op_key }}">
          <table class="postform">
            <tbody>
              <tr>
                <td>
                  Name:
                </td>
                <td>
                  <input type="text" name="name" size="28" maxlength="75" accesskey="e">
                  Email:
                  <input type="text" name="email" size="28" maxlength="75" accesskey="e">
                </td>
                <td style="text-align: right;">
                  <input type="submit" value="Reply" accesskey="z">
                </td>
              </tr>
              <tr>
                <td class="label">
                  Message
                </td>
                <td colspan="2">
                  <textarea name="message" cols="60" rows="5" accesskey="m"></textarea>
                </td>
              </tr>
              <tr>
                <td>
                  &nbsp;
                </td>
                <td colspan="2">
                  <a href="/{{ board }}/{{ thread.op_key }}">All</a>&nbsp;&nbsp;<a href="/{{ board }}/{{ thread.op_key }}/l50">Last 50</a>&nbsp;&nbsp;<a href="/{{ board }}/{{ thread.op_key }}/-100">First 100</a>&nbsp;&nbsp;<a href="#menu">Menu</a>&nbsp;&nbsp;<a href="/{{ board }}/">Refresh</a>
                </td>
              </tr>
            </tbody>
          </table>
        </form>{% endif %}
      </div>
    </div>{% endfor %}{% if not replythread %}
    <div class="hborder">
      <div class="head">
        <div class="newthread">{% else %}
          <hr>{% endif %}
          <form name="postform" id="postform" action="/post" method="post">
            <input type="hidden" name="board" value="{{ board }}">{% if replythread %}
            <input type="hidden" name="parent" value="{{ replythread }}">{% endif %}
            <table class="postform">
              <tbody>{% if not replythread %}
                <tr>
                  <td class="label">
                    Subject:
                  </td>
                  <td>
                    <input type="text" name="subject" size="40" maxlength="75" accesskey="s">
                  </td>
                  <td style="text-align: right;">
                    <input type="submit" value="New Thread" accesskey="z">
                  </td>
                </tr>{% endif %}
                <tr>
                  <td>
                    Name:
                  </td>
                  <td>
                    <input type="text" name="name" size="28" maxlength="75" accesskey="e">
                    Email:
                    <input type="text" name="email" size="28" maxlength="75" accesskey="e">
                  </td>
                  <td style="text-align: right;">{% if replythread %}
                    <input type="submit" value="Reply" accesskey="z">{% else %}
                    &nbsp;{% endif %}
                  </td>
                </tr>
                <tr>
                  <td class="label">
                    Message
                  </td>
                  <td colspan="2">
                    <textarea name="message" cols="60" rows="5" accesskey="m"></textarea>
                  </td>
                </tr>
              </tbody>
            </table>
          </form>{% if not replythread %}
        </div>
      </div>
    </div>{% endif %}
  </body>
</html>